<template>
  <div class="infoNav-containner">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="工程配置" name="first">
        <div class="viewContent">
          <el-row :gutter="24">
            <el-col :span="24">
              <div class="grid-content bg-purple">
               <configuration-table></configuration-table>
              </div>
            </el-col>
          </el-row>
        </div>
      </el-tab-pane>
      <el-tab-pane label="心跳配置" name="second">
        <div class="viewContent">
          <el-row :gutter="20">
            <el-col :span="4">
              <div class="grid-content bg-purple">
                <!--<left-tree></left-tree>-->
              </div>
            </el-col>
            <el-col :span="20">
              <div class="grid-content bg-purple">
                <!--<search-table></search-table>-->
              </div>
            </el-col>
          </el-row>
        </div>
      </el-tab-pane>
      <el-tab-pane label="安全时段" name="third">
        <div class="viewContent">
          <el-row class="alarmRow">
            <el-col :span="25" class="alarmCol">
              <div class="grid-content bg-purple">
                <!--<alarm-record></alarm-record>-->
              </div>
            </el-col>
          </el-row>
        </div>
      </el-tab-pane>
      <el-tab-pane label="移动配置" name="four">
        <div class="viewContent">
          <el-row class="alarmRow">
            <el-col :span="25" class="alarmCol">
              <div class="grid-content bg-purple">
                <!--<alarm-record></alarm-record>-->
              </div>
            </el-col>
          </el-row>
        </div>
      </el-tab-pane>
      <el-tab-pane label="告警发送策略" name="five">
        <div class="viewContent">
          <el-row class="alarmRow">
            <el-col :span="25" class="alarmCol">
              <div class="grid-content bg-purple">
                <!--<alarm-record></alarm-record>-->
              </div>
            </el-col>
          </el-row>
        </div>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
  import configurationTable from './configurationTable'
  //  import rightTable from './queryInfoTable'
  //  import searchTable from './dataSearchTable'
  //  import alarmRecord from './alarmRecordTable'

  export default {
    name: 'queryInfonav',
    components: { configurationTable },
    data() {
      return {
        activeName: 'first'
      }
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event)
      }
    }
  }

</script>
<style rel="stylesheet/scss" lang="scss" scoped>
  .infoNav-containner{
    width: 100%;
    height: 50px;
    font-size: 20px;
    color: #25B6C7;
    background-color: #F0F3F5;

  }
  .viewContent{
    width: 100%;
    height: 40vw;
    /*border: 1px solid red;*/
  }
  /*改变tab颜色*/
  .el-tabs__item:hover {
    color: #27B3C7;
    cursor: pointer;
  }
  .el-tabs__item.is-active {
    color: #27B3C7;
    background-color: #DCEDF1;
  }
  .el-tabs__active-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #27B3C7;
    z-index: 1;
    -webkit-transition: -webkit-transform .3s cubic-bezier(.645,.045,.355,1);
    transition: -webkit-transform .3s cubic-bezier(.645,.045,.355,1);
    transition: transform .3s cubic-bezier(.645,.045,.355,1);
    transition: transform .3s cubic-bezier(.645,.045,.355,1), -webkit-transform .3s cubic-bezier(.645,.045,.355,1);
    transition: transform .3s cubic-bezier(.645,.045,.355,1),-webkit-transform .3s cubic-bezier(.645,.045,.355,1);
    list-style: none;
  }
  .el-tabs__item {
    padding: 0 20px;
    height: 40px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    line-height: 40px;
    display: inline-block;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    text-align: center;
    position: relative;
  }
  .el-tabs__item.is-top:last-child {
    padding-right: 18px;
  }
  /************告警样式*************/
  .alarmRow{
    width: 100%;
  }
  .alarmCol{
    width: 100%;
  }
  /***************Tab组件颜色修改*****************/
  /deep/ .el-tabs__item:hover{
    color: #27B3C7;
  }
  /deep/ .el-tabs__item.is-active{
    color: #27B3C7;
    line-height: 50px;
  }
  /deep/ .el-tabs__active-bar{
    height: 4px;
    background-color: #27B3C7;
  }
  /deep/ .el-tabs__nav{
    margin-left: 30px;
    height: 50px;
  }
  /deep/ .el-tabs__nav-wrap{
    height: 50px;
  }
</style>
